
package md.sv.dbu.config.jaxb;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for updateBlockType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="updateBlockType">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;choice>
 *           &lt;element name="insertSQL" type="{http://dbu-namespace.md}insertSQLType"/>
 *           &lt;element name="updateSQL" type="{http://dbu-namespace.md}updateSQLType"/>
 *           &lt;element name="executeSQL" type="{http://dbu-namespace.md}executeSQLType"/>
 *         &lt;/choice>
 *         &lt;element name="onError" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       &lt;/sequence>
 *       &lt;attribute name="database" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="logError" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "updateBlockType", namespace = "http://dbu-namespace.md", propOrder = {
    "insertSQL",
    "updateSQL",
    "executeSQL",
    "onError"
})
public class UpdateBlockType {

    @XmlElement(namespace = "http://dbu-namespace.md")
    protected InsertSQLType insertSQL;
    @XmlElement(namespace = "http://dbu-namespace.md")
    protected UpdateSQLType updateSQL;
    @XmlElement(namespace = "http://dbu-namespace.md")
    protected ExecuteSQLType executeSQL;
    @XmlElement(namespace = "http://dbu-namespace.md")
    protected String onError;
    @XmlAttribute
    protected String database;
    @XmlAttribute
    protected String name;
    @XmlAttribute
    protected Boolean logError;

    /**
     * Gets the value of the insertSQL property.
     * 
     * @return
     *     possible object is
     *     {@link InsertSQLType }
     *     
     */
    public InsertSQLType getInsertSQL() {
        return insertSQL;
    }

    /**
     * Sets the value of the insertSQL property.
     * 
     * @param value
     *     allowed object is
     *     {@link InsertSQLType }
     *     
     */
    public void setInsertSQL(InsertSQLType value) {
        this.insertSQL = value;
    }

    /**
     * Gets the value of the updateSQL property.
     * 
     * @return
     *     possible object is
     *     {@link UpdateSQLType }
     *     
     */
    public UpdateSQLType getUpdateSQL() {
        return updateSQL;
    }

    /**
     * Sets the value of the updateSQL property.
     * 
     * @param value
     *     allowed object is
     *     {@link UpdateSQLType }
     *     
     */
    public void setUpdateSQL(UpdateSQLType value) {
        this.updateSQL = value;
    }

    /**
     * Gets the value of the executeSQL property.
     * 
     * @return
     *     possible object is
     *     {@link ExecuteSQLType }
     *     
     */
    public ExecuteSQLType getExecuteSQL() {
        return executeSQL;
    }

    /**
     * Sets the value of the executeSQL property.
     * 
     * @param value
     *     allowed object is
     *     {@link ExecuteSQLType }
     *     
     */
    public void setExecuteSQL(ExecuteSQLType value) {
        this.executeSQL = value;
    }

    /**
     * Gets the value of the onError property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getOnError() {
        return onError;
    }

    /**
     * Sets the value of the onError property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setOnError(String value) {
        this.onError = value;
    }

    /**
     * Gets the value of the database property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getDatabase() {
        return database;
    }

    /**
     * Sets the value of the database property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setDatabase(String value) {
        this.database = value;
    }

    /**
     * Gets the value of the name property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setName(String value) {
        this.name = value;
    }

    /**
     * Gets the value of the logError property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public boolean isLogError() {
        if (logError == null) {
            return false;
        } else {
            return logError;
        }
    }

    /**
     * Sets the value of the logError property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setLogError(Boolean value) {
        this.logError = value;
    }

}
